<template>
  <web-view :src="webUrl" />
</template>

<script setup lang="ts">
import { ref } from "vue";
import { onLoad } from "@dcloudio/uni-app";
import { getAnyApp } from '@/common/hooks';
// 系统总模块
const { Cheese } = getAnyApp();

const webUrl = ref("");

onLoad(async(option: any) => {
  const wxAuth: any = await Cheese.User?.getCode();
  webUrl.value = decodeURIComponent(option.url) + '&code=' + (wxAuth ? wxAuth.code : '');
});

</script>

<style scoped lang="scss"></style>